import { accessSync, mkdirSync } from 'node:fs'

export function ensureDir (path: string) {
  try {
    accessSync(path)
  } catch {
    mkdirSync(path)
  }
}
